<template>
  <el-drawer
    v-bind="$attrs"
    :modal-append-to-body="false"
    :wrapperClosable="false"
    v-on="$listeners"
    @mouseenter.native="onMouseHover"
  >
    <div class="demo-drawer__content">
      <slot></slot>
    </div>
  </el-drawer>
</template>

<script>

export default {
  name: 'Drawer',
  props: {

  },
  data() {
    return {

    }
  },
  methods: {
    onMouseHover() {
      const len = document.getElementsByClassName('el-drawer__wrapper').length
      for (var i = 0; i < len; i++) {
        document.getElementsByClassName('el-drawer__wrapper')[i].removeAttribute('title')
      }
    }

  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import '~@/assets/styles/variables';
@import '~@/assets/styles/mixin';
</style>
